//
//  Header_CustomDefine.h
//  ChatForHot
//
//  Created by FLY on 2018/10/9.
//  Copyright © 2018年 FLY. All rights reserved.
//

#ifndef Header_CustomDefine_h
#define Header_CustomDefine_h

#define HOTCHATMaxPhotoLength 51200
#define HOTCHATMaxVideoTimes 15
#define HOTCHATMaxVideoLength 52428800  //50M

#define HOTCHATUIWIDTH  [UIScreen mainScreen].bounds.size.width
#define HOTCHATUIHEIGHT  [UIScreen mainScreen].bounds.size.height
#define Auto(x) x * (HOTCHATUIWIDTH/750.0)

#define iPhone5 [[UIScreen mainScreen] bounds].size.width == 325.0f && [[UIScreen mainScreen] bounds].size.height == 568.0f
#define iPhone6 [[UIScreen mainScreen] bounds].size.width == 375.0f && [[UIScreen mainScreen] bounds].size.height == 667.0f
#define iPhone6P [[UIScreen mainScreen] bounds].size.width == 414.0f && [[UIScreen mainScreen] bounds].size.height == 736.0f
#define iPhoneX [[UIScreen mainScreen] bounds].size.width == 375.0f && [[UIScreen mainScreen] bounds].size.height == 812.0f
#define iPhoneXR [[UIScreen mainScreen] bounds].size.width == 414.0f && [[UIScreen mainScreen] bounds].size.height == 896.0f
#define iPhoneXSMAX [[UIScreen mainScreen] bounds].size.width == 375.0f && [[UIScreen mainScreen] bounds].size.height == 896.0f

#define HOTCHATTabMenuHeight (iPhoneX || iPhoneXR || iPhoneXSMAX ? 83 : 50)

#define HOTCHATrgba(r,g,b,a) [UIColor colorWithRed:r/255.f green:g/255.f blue:b/255.f alpha:a]
#define HOTCHATrgb(r,g,b) HOTCHATrgba(r,g,b,1.f)

#define HOTCHATHexColor(Value) [UIColor colorWithRed:((float)((Value & 0xFF0000) >> 16))/255.0 green:((float)((Value & 0xFF00) >> 8))/255.0 blue:((float)(Value & 0xFF))/255.0 alpha:1.0]

#define HOTCHATMainColor HOTCHATHexColor(0x8123FF)


#endif /* Header_CustomDefine_h */
